Javascript to Scheme Compilation
نویسنده
چکیده
This paper presents Jsigloo, a Bigloo frontend compiling Javascript to Scheme. Javascript and Scheme share many features: both are dynamically typed, they feature closures and allow for functions as first class citizens. Despite their similarities it is not always easy to map Javascript constructs to efficient Scheme code, and in this paper we discuss the non-obvious transformations that needed special attention. Even though optimizations were supposed to be done by Bigloo the chosen Javascript-Scheme mapping made several analyses ineffective and some optimizations are hence implemented in Jsigloo. We illustrate the opportunities Bigloo missed and show how the additional optimizations improve the situation.
منابع مشابه
Proceedings of the Sixth Workshop on Scheme and Functional Programming September 24 , 2005 Tallinn , Estonia
ion and Performance from Explicit Monadic Reflection Jonathan Sobel, Erik Hilsdale, R. Kent Dybvig, Daniel P. Friedman . 27 An Operational Semantics for R5RS Scheme Jacob Matthews and Robert Bruce Findler . . . . . . . . . . . . . . . 41 Commander S The shell as a browser Martin Gasbichler and Eric Knauel . . . . . . . . . . . . . . . . . . . 55 Ubiquitous Mails Erick Gallesio and Manuel Serran...
متن کاملHop Client-Side Compilation
Hop is a new language for programming interactive Web applications. It aims to replace HTML, JavaScript, and server-side scripting languages (such as PHP, JSP) with a unique language that is used for client-side interactions and server-side computations. A Hop execution platform is made of two compilers: one that compiles the code executed by the server, and one that compiles the code executed ...
متن کاملCombining thread-level speculation and just-in-time compilation in Google's V8 JavaScript engine
Thread-Level Speculation can be used to take advantage of multicore architectures for JavaScript in web applications. We extend previous studies with these main contributions; we implement Thread-Level Speculation in the state-of-the art Just-in-time enabled JavaScript engine V8 and make the measurements in the Chromium web browser both from Google instead of using an interpreted JavaScript eng...
متن کاملPreliminary Results of Combining Thread-Level Speculation and Just-in-Time Compilation in Google’s V8
We present the first implementation of Thread-Level Speculation in combination with Just-in-time compilation. The implementation is done in Google’s V8, a well-known JavaScript engine, and evaluated on 15 popular web application executing on 2, 4, and 8 core computers. Our results show an average speedup of 1.55 on 4 cores, without any JavaScripts code modifications. Further, we have found that...
متن کاملA Concurrent Trace-based Just-In-Time Compiler for JavaScript
JavaScript is emerging as the ubiquitous language of choice for web browser applications. These applications increasingly execute on embedded mobile devices, and thus demand responsiveness (i.e., short pause times for system activities, such as compilation and garbage collection). To deliver responsiveness, web browsers, such as Firefox, have adopted trace-based Just-In-Time (JIT) compilation. ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2005